{template 'common/header'}
<ul class="nav nav-tabs">
    <li {if $op == 'list'}class="active" {/if}>
        <a href="{php echo $this->createWebUrl('pay', array('op' => 'list'));}">支付方式管理</a>
    </li>
    <li>
        <a href="{php echo $this->createWebUrl('pay', array('op' => 'add'));}">新增支付方式</a>
    </li>
    
</ul>
<div style="padding:15px;">
        <form action="" method="post">
        <table class="table table-hover">
            <thead class="navbar-inner">
                <tr>
                    <th style="width:5%;">id</th>
                    <th style="width:8%">类型</th>
                    <th style="width:30%;">支付方式</th>
                    <th style="width:50%;">操作</th>
                </tr>
            </thead>
            <tbody>
                {loop $list $item}
                <tr>
                    <td>
                        {$item['id']}
                    </td>
                    <td>
                       {if $item['type']== 1}超市{elseif $item['type'] == 2}物业费{elseif $item['type'] == 3}商家{elseif $item['type'] == 4}小区活动{/if}
                    </td>
                    <td>{if $item['pay']['weixin'] == 1}微信支付{/if}&nbsp;&nbsp;{if $item['pay']['alipay']}支付宝支付{/if}&nbsp;&nbsp;{if $item['pay']['credit']}余额支付{/if}&nbsp;&nbsp;{if $item['pay']['cash']}货到付款{/if}</td>
                    <td>
                        <a href="{php echo $this->createWebUrl('pay',array('op' => 'add','id' => $item['id']))}" title="编辑" class="btn btn-default btn-sm" ><i class="fa fa-edit" data-toggle="tooltip" data-placement="top"></i>编辑</a> 
                        
                        <a onclick="return confirm('删除号码，此操作不可恢复，确认吗？'); return false;" href="{php echo $this->createWebUrl('pay',array('op' => 'delete','id' => $item['id']))}" title="" data-toggle="tooltip" data-placement="top" class="btn btn-default btn-sm" data-original-title="删除"><i class="fa fa-times"></i>删除</a>
                    </td>
                </tr>
                {/loop}
            </tbody>
        </table>
        </form>
        {$pager}
    </div>



{template 'common/footer'}